package com.tonggedata.dataapi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;

/**
 * api业务应用名称，网关consumer
 *
 * @author tonggedata
 * @date 2022-06-19 12:59:37
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "`api_biz_consumer`" , autoResultMap = true)
public class ApiBizConsumer extends Model<ApiBizConsumer> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @TableField(value = "`id`" )
    private Long id;
    /**
     * api业务应用名称
     */
    @TableField(value = "`name`" )
    private String name;
    /**
     * 鉴权方式：1 basic-auth 2 jwt
     */
    @TableField(value = "`auth_type`" )
    private Integer authType;
    /**
     * jwt认证：包含token等信息
     */
    @TableField(value = "`jwt_json`" )
    private String jwtJson;
    /**
     * basic-auth简单认证,json包含username和password
     */
    @TableField(value = "`basic_auth_json`" )
    private String basicAuthJson;
    /**
     * 创建人
     */
    @TableField(value = "`create_user`" )
    private String createUser;
    /**
     * 更新人
     */
    @TableField(value = "`update_user`" )
    private String updateUser;
    /**
     * 创建时间
     */
    @TableField(value = "`create_time`" )
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "`update_time`" )
    private Date updateTime;
    /**
     * 删除(0正常，1已删除)
     */
    @TableLogic
    @TableField(value = "`deleted`" )
    private Integer deleted;

}
